import request from './axiosConfig'

export function getList(param) {
    return request({
        method: 'get',
        url: '/WebAnalyzeTask',
        params: param
    })
}

export function WebSiteTask(param) {
    return request({
        method: 'get',
        url: '/WebSiteTask',
        params: param
    })
}
export function AnalyzeRule(param) {
    return request({
        method: 'get',
        url: '/AnalyzeRule',
        params: param
    })
}
export function AnalyzeResult(param) {
    return request({
        method: 'get',
        url: '/AnalyzeResult',
        params: param
    })
}
export function TranslateResult(param) {
    return request({
        method: 'get',
        url: '/TranslateResult',
        params: param
    })
}
export function WebTranslateTask(param) {
    return request({
        method: 'get',
        url: '/WebTranslateTask',
        params: param
    })
}
export function WebTranslateTaskPost(param) {
    return request({
        method: 'post',
        url: '/WebTranslateTask',
        data: param
    })
}

export function WebSiteTaskPost(param) {
    return request.post('/WebSiteTask',param)
}

export function AnalyzeRulePost(param) {
    return request.post('/AnalyzeRule',param)
}

export function WebAnalyzeTaskPost(param) {
    return request.post('/WebAnalyzeTask',param)
}

export function getTitleByUrl(url) {
    return request({
        method: 'get',
        url: '/WebSiteTask/title?url=' + url
    })
}